
{#foreach $T.list as r}
<div id="myShopCart_{$T.r.id}" style="padding-bottom: 0.5rem;display:inline-block;width: 100%;border-bottom: solid 1px #EBEBEB;{#if $T.status == 2}padding-bottom: 8px;{#/if}margin-top: 0.5rem;">
	{#if $T.status == 1 && $T.r.is_valid == 0}
	<img style="margin: 0px 10px;margin-top: {($P.width*0.256)/2 - 8}px;float: left;" width="16" height="16" src="{#if $T.r.productPackage.checked != null && $T.r.productPackage.checked == 'checked'}../image/input_s.png{#else}../image/input.png{#/if}">
	{#else}
	<img style="margin: 0px 10px;margin-top: {($P.width*0.256)/2 - 8}px;float: left;" width="16" height="16" src="{#if $T.r.productPackage.checked != null && $T.r.productPackage.checked == 'checked'}../image/input_s.png{#else}../image/input.png{#/if}" onclick="onchangeNum({$T.r$index})">
	{#/if}
	<img alt="" class="goodsImg" {#if $T.r.productPackage.image == null} src="../image/nopic.png" {#else} src="{$T.r.productPackage.image}" {#/if} style="width:{$P.width*0.256}px;height:{$P.width*0.256}px;border-radius: 1rem;">
	<div class="goodsInfo" style="height:{$P.width*0.256}px;position: relative;">
		<div style="font-size: 1.4rem;color: #333;">{$T.r.product.name}</div>
		<div style="color:#B2B2B2;font-size:1.1rem;margin-top:0.3rem;">颜色分类: {$T.r.productPackage.name}</div>
		<div style="width: 100%;padding: 0px;position: absolute;bottom: 0px;">
			<div class="price" style="margin:0;margin-top: 2rem;position: relative;bottom: 0px;"><span style='font-size: 1.1rem;'>¥ </span>{$T.r.productPackage.price}</div>
			{#if $T.status != 1}
            <ul class="count">
                <li><span style="border-left: 1px solid #e6e6e6;" id="num-jia" class="num-jia" onclick="changeCut({$T.r$index},1, {$P.status})">+</span></li>
                <li><span class="input-num">{$T.r.quantity}</span></li>
                <li><span style="border-right: 1px solid #e6e6e6;" id="num-jian" class="num-jian" onclick="changeCut({$T.r$index},2,{$P.status})"">-</span></li>
            </ul>
            {#else}
            <span style="float: right;margin-right: 10px;">x{$T.r.quantity}</span>
            {#/if}
		</div>
		{#if $T.r.is_valid == 0}
		<div style="background: url(../image/shixiao.png);position: absolute;z-index: 1111;width: 80px;height: 67px;right: 0;top: 7px;"></div>
		{#/if}
	</div>
</div>
{#/for}

{#if $T.list == null || $T.list.length <=0 }
	
<div id="empty_p" style="width: {$P.width}px;height:{$P.height}px">
	<div id="empty" style="width: {$P.width}px;">
		<div id="header">
			<h2>您的鱼篓还是空的，赶紧行动吧！</h2>
		</div>
		
		<div id="header2">
			您还可以进行以下操作：
			
			<ul>
				<li> <a href="#" onclick="gotoHome()">返回首页</a></li>
			</ul>
		</div>
		
		
	</div>
</div>

{#/if}

